package com.t.bricks.bussiness.service.diary.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.t.bricks.bussiness.db.dao.diary.DiaryDao;
import com.t.bricks.bussiness.db.entity.diary.Diary;
import com.t.bricks.bussiness.service.diary.DiaryService;
import com.t.bricks.model.MsgEmity;
import com.t.bricks.utils.spring.ModuleUtil;

/**
 * 日记'Diary表'基本业务操作类接口实现
 */
@Service
public class DiaryServiceImpl implements DiaryService<Diary> {

	@Autowired
	private DiaryDao<Diary> diaryDao;

	/**
	 * 查询简化数据
	 * @param sLike 查询条件
	 * @return
	 */
	@Override
	public MsgEmity findBySimpl(String sLike) {
		return diaryDao.findBySimpl(sLike, ModuleUtil.currentLoginUserId());
	}
	
}
